package com.example.base.net

import com.example.base.entity.NewsBean
import com.example.base.entity.Res
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.Path

interface ApiService {
    //新闻列表
    @GET("/api/news")
    suspend fun getNews():Res<NewsBean>
    //删除新闻
    @DELETE("/api/news/{id}")
    suspend fun delete(@Path("id") id:Int):Res<String?>
}